using UnityEngine;

public class CurrencyControllerBase : MonoBehaviour
{
	public UILabel label;

	public UITabController shop;

	protected float elapsedTime;

	protected float delayBetweenUpdate = 0.5f;

	public virtual void UpdateCurrency(bool force = false)
	{
	}

	public void OnClick()
	{
	}

	public virtual void Update()
	{
		elapsedTime += Time.deltaTime;
		if (elapsedTime >= delayBetweenUpdate)
		{
			elapsedTime = 0f;
			UpdateCurrency();
		}
	}
}
